import http from "@/utils/http";

// 获取验证码
export const getVerificationCode = (key: any) => {
    return http.get('/sys/user/captcha', {
        params: {
            key
        },
        responseType: "blob",
    })
}
// 注册
export const register = (userMsg: any) => {
    return http.post('/sys/user/register', userMsg)
}

// 登录
export const login = (userMsg: any) => {
    return http.post('/sys/user/login', userMsg)
}

export const getEmailCaptcha = (email: string) => {
    return http.get('/sys/user/EmailCaptcha', {
        params: {
            email: email
        }
    })
}